﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TRINHTUNGLAM
{
    public partial class Form7 : Form
    {
        public Form7()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            /*listBox1.Items.Clear();
            string ten = txtten.Text;
            string tuoi = txttuoi.Text;
            //string cbb = this.comboBox1.SelectedItem.ToString();
            string cbb = comboBox1.Text;
            listBox1.Items.Add(ten);
            listBox1.Items.Add(tuoi);
            listBox1.Items.Add(cbb);
            if (rdonam.Checked == true)
            {
                listBox1.Items.Add(rdonam.Text);
            }
            else
            {
                listBox1.Items.Add(rdonu.Text);
            }
            
            /*if(cbb == "Chua Ket Hon")
            {
                listBox1.Items.Add(ten);
                listBox1.Items.Add(tuoi);
                listBox1.Items.Add(cbb);
                if(rdonam.Checked==true)
                {
                    listBox1.Items.Add(rdonam.Text);
                }
                else
                {
                    listBox1.Items.Add(rdonu.Text);
                }
            }*/

        }

        private void button2_Click(object sender, EventArgs e)
        {
            /*if(MessageBox.Show("Ban co chac chan muon thoa ko?","Thong bao",MessageBoxButtons.YesNo,MessageBoxIcon.Question)== DialogResult.Yes)
            {
                Application.Exit();
            }*/
            
        }
    }
}
